#include "stdafx.h"
#include "AirportAirwayConnector.h"

void AirportAirwayConnector::ParseDictionary(Dictionary p_Dictionary)
{
	Dictionary::iterator p = p_Dictionary.begin();
	AirportName = p->second; p++;
	AirwayName = p->second; p++;
	FixName = p->second; p++;
	Name = AirportName + '-' + AirwayName;
}

std::string AirportAirwayConnector::Key()
{
	return Name;
}

void AirportAirwayConnector::Print()
{
	std::cout << "Airport Airway Connector name: " << Name << std::endl;
	std::cout << "Airport name: " << AirportName << std::endl;
	std::cout << "Airway name: " << AirwayName << std::endl;
    std::cout << "Fix: " << FixName << std::endl;
    std::cout << "------------------------------" << std::endl;
}

AirportAirwayConnectorMap::AirportAirwayConnectorMap() : AdaptationMap<AirportAirwayConnector>(AIRPORTAIRWAYCONADAPTFILENAME)
{
}
